import request from "@/config/axios/service";

//常量
export function AddConstant(data) {
  return request({
    url: "/AvpEquipmentConstant/Add",
    method: "post",
    data,
  });
}
export function updateConstant(data) {
  return request({
    url: "/AvpEquipmentConstant/Update",
    method: "put",
    data,
  });
}
export function getConstant(params) {
  return request({
    url: "/AvpEquipmentConstant/GetPageList",
    method: "get",
    params,
  });
}
//变量
export function AddVariable(data) {
  return request({
    url: "/AvpStatusVariable/Add",
    method: "post",
    data,
  });
}
export function updateVariable(data) {
  return request({
    url: "/AvpStatusVariable/Update",
    method: "put",
    data,
  });
}
export function getVariable(params) {
  return request({
    url: "/AvpStatusVariable/GetPageList",
    method: "get",
    params,
  });
}

//事件
export function AddEvent(data) {
  return request({
    url: "/AvpCollectionEvent/Add",
    method: "post",
    data,
  });
}
export function updateEvent(data) {
  return request({
    url: "/AvpCollectionEvent/Update",
    method: "put",
    data,
  });
}
export function getEvent(params) {
  return request({
    url: "/AvpCollectionEvent/GetPageList",
    method: "get",
    params,
  });
}

//报告
export function AddReport(data) {
  return request({
    url: "/AvpReport/Add",
    method: "post",
    data,
  });
}
export function updateReport(data) {
  return request({
    url: "/AvpReport/Update",
    method: "put",
    data,
  });
}
export function getReport(params) {
  return request({
    url: "/AvpReport/GetPageList",
    method: "get",
    params,
  });
}
